﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeBehind="ViewItemCatalog.aspx.cs" Inherits="frmViewItemCatalog.WebForm1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:GridView ID="gvItemList" runat="server" CellPadding="4"
        ForeColor="#333333" GridLines="None" AutoGenerateColumns="False" 
        ShowFooter="True" AllowPaging="True" 
        onpageindexchanging="GridViewViewRequisitionHistory_PageIndexChanging" 
        PageSize="5" onrowcommand="GridViewViewRequisitionHistory_RowCommand">
        <AlternatingRowStyle BackColor="White" BorderStyle="Double" />
        <EditRowStyle BackColor="#2461BF" />
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#EFF3FB" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#F5F7FB" />
        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
        <SortedDescendingCellStyle BackColor="#E9EBEF" />
        <SortedDescendingHeaderStyle BackColor="#4870BE" />
        <%--<AlternatingRowStyle BackColor="White" />--%>
        <Columns>
            <asp:TemplateField HeaderText="Item ID" ItemStyle-HorizontalAlign="Center">
                <ItemTemplate>
                    <asp:Label ID="lblStatus" runat="server" Text='<%# Eval("Status") %>'
                        Style="text-align: center" />
                </ItemTemplate>

<ItemStyle HorizontalAlign="Center"></ItemStyle>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Item Description" 
                ItemStyle-HorizontalAlign="Center">
                <ItemTemplate>                
                    <asp:Label ID="lblRequestedDate" runat="server" Style="text-align: center" 
                        Text='<%# Eval("EmployeeRequisitionDate") %>' />
                </ItemTemplate>
                <%--<ItemTemplate>
<asp:HyperLink ID="Edit" runat="server" Text="Edit" NavigateUrl='<%# Eval("DataKeyName", "~/View.aspx?Id={0}") %>' />
</ItemTemplate>--%>

<ItemStyle HorizontalAlign="Center"></ItemStyle>
            </asp:TemplateField>
            
            <asp:TemplateField HeaderText="Price Per Unit" 
                HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right">
                <ItemTemplate>
                    <asp:Label ID="lblReason" runat="server" Text='<%# Eval("Remarks") %>' 
                        Style="text-align: center" />
                </ItemTemplate>                
                <HeaderStyle HorizontalAlign="Right" />

<ItemStyle HorizontalAlign="Right"></ItemStyle>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="UOM" ItemStyle-HorizontalAlign="Center">
                <ItemTemplate>
                    <asp:Label ID="lblTotal" runat="server" Text='<%#"$" + Eval("TotalAmount") %>' 
                        Style="text-align: center" />
                </ItemTemplate>

<ItemStyle HorizontalAlign="Center"></ItemStyle>
            </asp:TemplateField>
            
        </Columns>
    </asp:GridView>

</asp:Content>
